package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysBugWorksheet;
import com.tsd.system.entity.SysBugWorksheetExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysBugWorksheet服务实现层接口
 *
 * @author david
 * @date 2022/09/27 17:58:22
 */
public interface SysBugWorksheetService {

    /**
     * 描述：根据id获取SysBugWorksheet
     *
     * @param id
     */
    SysBugWorksheet getSysBugWorksheetById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysBugWorksheet
     *
     * @param sid
     */
    SysBugWorksheetExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除SysBugWorksheet
     *
     * @param list
     */
    void deleteSysBugWorksheets(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新SysBugWorksheet
     *
     * @param record
     * @param opUser
     */
    void saveSysBugWorksheet(SysBugWorksheet record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysBugWorksheet
     *
     * @param params
     * @param page
     */
    List<SysBugWorksheetExt> findSysBugWorksheets(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysBugWorksheet
     *
     * @param params
     */
    List<SysBugWorksheetExt> findSysBugWorksheets(Map<String, Object> params) throws Exception;

    /**
     * 描述：根据parent_sid获取处理记录
     *
     * @param parent_sid
     * @return
     */
    List<SysBugWorksheetExt> findSysBugWorksheetsByParentSid(String parent_sid);

    /**
     * 描述：处理问题工单
     *
     * @param record
     * @param opUser
     */
    void handleSysBugWorksheet(SysBugWorksheet record, SysUser opUser) throws Exception;

}